import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  daleteJson,
  download,
} from '../utils/request';

//大区会员销售报表post请求
export function queryMemberSalesData(data) {
  return post('/api/data-service/StoreActivation/queryMemberSalesData', data);
}

//大区会员销售报表导出 excel post请求
export function queryMemberSalesDataExcel(data) {
  return download(
    '/api/data-service/StoreActivation/queryMemberSalesDataExcel',
    data
  );
}
//会员下单数量 人数占比post请求
export function queryMemberShopping(data) {
  return post('/api/data-service/StoreActivation/queryMemberShopping', data);
}
//根据时间段 查询会员总数，有效绑定总数，弱绑定总数 已经流失数post请求
export function getMemberCount(data) {
  return post('/api/member-service/v1/member/getMemberCount', data);
}
//会员等级 人数占比post请求
export function queryMemberGrade(data) {
  return post('/api/member-service/v1/member/queryMemberGrade', data);
}
//会员注册渠道 人数占比post请求
export function queryMemberType(data) {
  return post('/api/member-service/v1/member/queryMemberType', data);
}
//会员新增趋势post请求
export function queryMemberTrend(data) {
  return post('/api/member-service/v1/member/queryMemberTrend', data);
}
//订单配送方式  占比 post请求
export function queryDeliveryType(data) {
  return post('/api/trade-service/v1/myorder/queryDeliveryType', data);
}
//消费人群趋势 post请求
export function queryConsumptionTrend(data) {
  return post('/api/trade-service/v1/myorder/queryConsumptionTrend', data);
}
//会员收货地址分布图 post请求
export function queryReceiptMap(data) {
  return post('/api/trade-service/v1/myorder/queryReceiptMap', data);
}
//会员成交金额 人数占比post请求
export function queryMemberPay(data) {
  return post('/api/data-service/StoreActivation/queryMemberPay', data);
}

//扫码出库统计报表  头部信息查询post请求
export function queryScanOutTotal(data) {
  return post('/api/trade-service/v1/myorder/queryScanOutTotal', data);
}
//扫码出库统计报表  商品信息查询post请求
export function queryScanOutInfo(data) {
  return post('/api/trade-service/v1/myorder/queryScanOutInfo', data);
}
